package com.design.pattern.structuremode.proxy;


/**
 * 结构型模式-代理模式
 * @author yll
 * @version 1.0.0
 * @date 2024/03/19 15:53
 * @desc 代理真实业务，保存一个引用使得代理可以访问实体
 * */
public class ProxySubject implements ISubject {
    ISubject realSubject = new RealSubject();
    public void jiZhang(){
        realSubject.jiZhang();
    }
    public void baoShui(){
        realSubject.baoShui();
    }
    
}
